#ifndef CAPTUREWINDOW_H
#define CAPTUREWINDOW_H

#include <QWidget>
#include "capturepacket.h"
#include <QPushButton>
#include <QScrollArea>
#include <QVBoxLayout>
#include "capturepage.h"

namespace Ui {
class captureWindow;
}

class capturewindow : public QWidget
{
    Q_OBJECT

public:
    explicit capturewindow(QWidget *parent = nullptr);
    ~capturewindow();

public slots:
    void showCapturePage(const QString& interfaceName);
private slots:
    void updateInterfaceList(const QStringList &interfaces);
    void clearInterfaceList();
//signals:
    //void interfaceSelected(const QString &interfaceName);

private:
    Ui::captureWindow *ui;
    CapturePacket *capturePacket;

    //scroll area
    QWidget *scrollContent;
    QScrollArea *scrollArea;
    QVBoxLayout *scrollLayout;

    QVector<QPushButton*>interfaceButtons;

    //capture page
    CapturePage *capturePage;

};

#endif // CAPTUREWINDOW_H
